package cn.stylefeng.guns.modular.ums.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 会员账户流水表
 * </p>
 *
 * @author yzb
 * @since 2022-05-07
 */
@TableName("ums_member_account_records")
public class MemberAccountRecords implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 账户id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 会员id
     */
    @TableField("member_id")
    private Integer memberId;

    /**
     * 交易类型：1-分享收入，2-提现支出
     */
    @TableField("type")
    private Integer type;

    /**
     * 正负号：1-正，0-负
     */
    @TableField("sign")
    private Integer sign;

    /**
     * 金额
     */
    @TableField("money")
    private BigDecimal money;

    /**
     * 说明信息
     */
    @TableField("content")
    private String content;

    /**
     * 关联数据，如关联提现记录等
     */
    @TableField("data_id")
    private Integer dataId;

    /**
     * 天加时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getMemberId() {
        return memberId;
    }

    public void setMemberId(Integer memberId) {
        this.memberId = memberId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getSign() {
        return sign;
    }

    public void setSign(Integer sign) {
        this.sign = sign;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getDataId() {
        return dataId;
    }

    public void setDataId(Integer dataId) {
        this.dataId = dataId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "MemberAccountRecords{" +
        "id=" + id +
        ", memberId=" + memberId +
        ", type=" + type +
        ", sign=" + sign +
        ", money=" + money +
        ", content=" + content +
        ", dataId=" + dataId +
        ", createTime=" + createTime +
        "}";
    }
}
